<?php

 /**
 * @version		$Id: default_form.php 11845 2009-05-27 23:28:59Z robs
 * @package		Joomla.Site
 * @subpackage	com_contact
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidation');
JHtml::_('behavior.tooltip');
 if (isset($this->error)) : ?>
	<div class="contact-error">
		<?php echo $this->error; ?>
	</div>
<?php endif; ?>

<style type="text/css">
.block1{padding-left:10px}
</style>
<div class="col1" style="padding-top: 0px">
                    	<!-- Content Links -->

                         <!-- Content Heading -->

                            <div class="clear"></div>
                                <!-- Note -->

                               <div class="clear"></div>	

                             <div class="contactblock">
                             	<!-- Contact block  -->
                                <div class="block1" >
                                	<h5><?php echo JText::_('COM_CONTACT_ADDRESS')." 01"; ?></h5>
                                    
                                    <div class="mailingaddress">
                                    	<p>Lempor hendrerit. Phasellus quis</p>
                                         <p>lacus diam. Sed nisl ligula,</p> 
										<p>semper in ultricies sed</p>
                                    </div>
                                    <div class="teleno colr">+44 123 4567 89, +44 123 4567 89</div>
                                     <div class="teleno1 colr">+44 123 4567 89</div>
                                     <div class="emailaddress">
                                     	<a href="#">info@tpmsolutions.com.vn</a>
                                        <a href="#">www.tpmsolutions.com.vn</a>
                                     </div>
                                </div>
                                <div class="block2">
                               		<!-- Visit Address -->
                                    <h5><?php echo JText::_('COM_CONTACT_ADDRESS')." 02"; ?></h5>
                                	<div class="mailingaddress">
                                    	<p>Lempor hendrerit. Phasellus quis</p>
                                        <p>lacus diam. Sed nisl ligula,</p> 
										<p>semper in ultricies sed</p>
                                    </div>
                                    <div class="teleno colr">+44 123 4567 89, +44 123 4567 89</div>
                                <div class="emailaddress">
                                     	<a href="#">info@tpmsolutions.com.vn</a>
                                        <a href="#">www.tpmsolutions.com.vn</a>
                                      </div>
                                <div class="contacticon colr"> 464 64 65 4 64 56</div>
                                
                                </div>
                             <div class="clear"></div>
                             </div>
                             <div class="contactblock">
                             
                             	<div class="block1">
                                <h5><?php echo JText::_('COM_CONTACT_INFO'); ?></h5>
								
								
								
								
								<form id="contact-form" action="<?php echo JRoute::_('index.php'); ?>" method="post" class="form-validate global">
								
								
								<style type="text/css">
								
								label{    	float: left; width: 100px;}
												
												
												form.global input[type="text"], form.global input[type="password"], form.global select, form.global textarea { float: left;
												background: none repeat scroll 0 0 #FFFFFF;
												border: 1px solid #E0E0E0;
												border-radius: 3px 3px 3px 3px;
												margin: 0;
								}
								textarea{width:266px}
								</style>
								
                                	<ul class="inquiry">

                                		<li><label for="name"><?php echo $this->form->getLabel('contact_name'); ?></label><?php echo $this->form->getInput('contact_name'); ?></li> 
                                        <li><label for="email"><?php echo $this->form->getLabel('contact_email'); ?></label><?php echo $this->form->getInput('contact_email'); ?></li> 
                                        <li><label for="subject"><?php echo $this->form->getLabel('contact_subject'); ?></label><?php echo $this->form->getInput('contact_subject'); ?></li>
                                        <li> <label for="message"><?php echo $this->form->getLabel('contact_message'); ?></label><?php echo $this->form->getInput('contact_message'); ?></li>
                                    </ul>
                                    <div class="action1"> 
                        						<a href="#" class="btn1 left" onclick="$('#contact-form').submit();"><?php echo JText::_('COM_CONTACT_CONTACT_SEND'); ?></a>
												
												                            					
                    				</div>
                                </div>
								</form>
                             	<div class="block2">
                                	<h5><?php echo JText::_('COM_CONTACT_MAP'); ?></h5>
                                	<div class="map">
                                    	<a href="#"><img src="<?php echo JURI::base(); ?>/templates/tpmsolutions/images/map.gif"  alt="" /></a>
                                    </div>
 
                                </div>	
                             
                             <div class="clear"></div>
                             </div>
                             <div class="clear"></div>
 							<!-- Contact Other Campuses -->                            

                             <div class="clear"></div>
                    		<!-- col1 ends -->	
                    </div>










			<dl>

			<?php //Dynamically load any additional fields from plugins. ?>
			     <?php foreach ($this->form->getFieldsets() as $fieldset): ?>
			          <?php if ($fieldset->name != 'contact'):?>
			               <?php $fields = $this->form->getFieldset($fieldset->name);?>
			               <?php foreach($fields as $field): ?>
			                    <?php if ($field->hidden): ?>
			                         <?php echo $field->input;?>
			                    <?php else:?>
			                         <dt>
			                            <?php echo $field->label; ?>
			                            <?php if (!$field->required && $field->type != "Spacer"): ?>
			                               <span class="optional"><?php echo JText::_('COM_CONTACT_OPTIONAL');?></span>
			                            <?php endif; ?>
			                         </dt>
			                         <dd><?php echo $field->input;?></dd>
			                    <?php endif;?>
			               <?php endforeach;?>
			          <?php endif ?>
			     <?php endforeach;?>
				<dt></dt>
				<dd>
					<input type="hidden" name="option" value="com_contact" />
					<input type="hidden" name="task" value="contact.submit" />
					<input type="hidden" name="return" value="<?php echo $this->return_page;?>" />
					<input type="hidden" name="id" value="<?php echo $this->contact->slug; ?>" />
					<?php echo JHtml::_( 'form.token' ); ?>
				</dd>
			</dl>

